package org.imaginedays.java.design.patter.observer;

public class ConcreteObserver extends Observer {
	
	private String name;
	private String observerState;
	private ConcreteSubject subject;
	
	public ConcreteObserver(ConcreteSubject subjet,String name) {
		this.name = name;
		this.subject = subjet;
	}
	

	@Override
	public void update() {
		observerState = subject.getSubjectState();
		System.out.println(""+observerState);
	}

}
